package com.openbravo.data.gui.util;

import e.odbo.data.format.AlignmentEnum;

import javax.swing.*;

public class SwingUtils {
    public static int transformToSwingAlignment(AlignmentEnum alignmentEnum){
        int ret= SwingConstants.LEFT;
        switch (alignmentEnum){
            case LEFT:
                ret=SwingConstants.LEFT;
                break;
            case RIGHT:
                ret= SwingConstants.RIGHT;
                break;
            case CENTER:
                ret=SwingConstants.CENTER;
                break;
            case LEADING:
                ret=SwingConstants.LEADING;
                break;
        }
        return ret;
    }
}
